#!/bin/bash
#-----------------------------------------------------------------------------------------------------------------------
# git pre-commit hooks for the PhET Codebase. These are installed on all repos.
#
# This script only launches another bash script, and new logic should NOT be added here. This way, changes can be made
# without the need to reinstall git hooks across all repos.
#
# Please see https://github.com/phetsims/phet-info/blob/main/doc/phet-development-overview.md#utilities-and-instrumentation-for-development-and-testing
# for installation instructions.
#-----------------------------------------------------------------------------------------------------------------------

PRE_COMMIT_SCRIPT="../perennial-alias/bin/hook-pre-commit.sh"

# only run the file if it exists. This helps with backwards compatibility if on an older version of perennial-alias.
if test -f "$PRE_COMMIT_SCRIPT"; then
  $PRE_COMMIT_SCRIPT
fi
